﻿@model IEnumerable<Noodles.Core.Model.Pages>
<script type="text/javascript">

    $(document).ready(function () {
        $(".ShowFancyBox").fancybox({                       
                    'width': '400px',
                    'height': '75%'
                   
                });
    });
           
    
</script>
<table class="tablesorter" cellspacing="0"> 
			<thead> 
				<tr> 
   					<th></th> 
    				<th>Page Name</th>     			
    				<th>Created On</th> 
    				<th>Actions</th> 
				</tr> 
			</thead> 
    <tbody>
        
        @foreach (var page in Model)
        {
            <tr>
            <td></td> 
                <td>
                    @page.PageName
                </td>
                
                <td>
                  @page.CreateDate.ToString("dd/MM/yyyy")
                </td>
                <td>                
                   @Html.ActionImage("EditPage", "Pages", new { id = @page.PageID }, Url.Content("~/Content/images/icn_edit.png"), "ShowFancyBox fancybox.ajax")
                   @Html.ActionImage("Delete", "Pages", new { id = @page.PageID }, Url.Content("~/Content/images/icn_delete.png"), "Delete")    
                       
                </td>
            </tr>
        }
    </tbody>
    
</table>
